package com.itqf.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/10/12
 * @Time: 下午3:19
 */
@Data
@ApiModel(value = "商品类",description = "商品实体类")
public class Product {

    private int pid;
    private int tid;
    @ApiModelProperty(value = "商品名称",required = true,example = "小米手机")
    private String pname;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    private Date ptime;
    @ApiModelProperty(value = "商品信息",required = true,example = "小米手机就是好")
    private String  pinfo;
    private BigDecimal pprice;
    private int pstate;
    private String pimage;//

}
